package Cliente;

public class LockLogin {
	boolean isLocked = false;

	public synchronized void setLock() {
		while(isLocked){
			try {
				wait();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		isLocked = true;
	}

	public synchronized void unlock() {
		isLocked = false;
		notify();
	}
}
